package com.example.demo.service.impl;

import com.alibaba.fastjson.JSON;
import com.example.demo.mapper.MenuMapper;
import com.example.demo.mapper.RoleMapper;
import com.example.demo.pojo.Menu;
import com.example.demo.service.MenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    MenuMapper menuMapper;
    @Override
    public String selectMenu(int menuid, String menuname) {
        List<Menu> menus=menuMapper.selectMenu(menuid,menuname);

        return JSON.toJSONString(menus);
    }
}
